/***********************************************
 This file is part of redia-bapps-main-ios.
 
 Copyright (c) 2015 Redia A/S
 
 Redia-bapps-main-ios is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 redia-bapps-main-ios is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with redia-bapps-main-ios.  If not, see <http://www.gnu.org/licenses/>.
 
 *********************************************** */

//
//  BappsLibrary.h
//  bapps
//
//  Created by Nikolaj Tørring on 8/1/13.
//  Copyright (c) 2013 redia. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSONEncoding.h"
#import "BAMaterialLocations.h"


@interface BALibrary : NSObject <JSONEncoding>

/**
 Libraryname.
 */
@property(nonatomic, strong) NSString* name;

/**
 Library customer ID.
 */
@property(nonatomic, strong) NSString* customerId;

/**
 URL for library website.
 */
@property(nonatomic, strong) NSString* libraryWebsiteURL;

/**
 URLs for logo images.
 */
@property(nonatomic, strong) NSDictionary* logoUrls;

/**
 URLs to different versions of the app
 */
@property(nonatomic, strong) NSString* appURL;

/**
 Specifies available modules.
 */
@property (nonatomic, strong) NSArray* modules;

/**
 Application stylesheet for Library.
 */
@property (nonatomic, strong) NSDictionary* style;

/**
 Which filters should be presented in librarian search view
 */
@property (nonatomic, strong) NSDictionary* filters;


@property (nonatomic, strong) BAMaterialLocations* materialLocations;

/**
 Utility properties allowing for quick lookup
 */
@property (nonatomic, readonly) BOOL isLibraryModeAllowed;
@property (nonatomic, readonly) BOOL isLibrarianModeAllowed;
@property (nonatomic, readonly) BOOL isIMFModeEnabled;
@property (nonatomic, readonly) BOOL isScannerEnabled;

@end
